<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page isELIgnored="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>车票列表(s)</title>

<style>
	table{
		background:#000;
		border:0;
	}
	table tr{
		background:#FFF;
	}
	table td{
		text-align:center;
	}
</style>

</head>
<body>
	<table>
		<tr>
	        <th>Tid</th>
	        <th>departure_add</th>
	        <th>destination_add</th>
	        <th>departure_time</th>
	        <th>arrival_time</th>
	        <th>price</th>
	        <th>uname_code</th>
        </tr>
		<c:forEach items="${tickets}" var="t">
			<%-- <c:out value="${t}"></c:out> --%>
			<tr>
				<td><c:out value="${t.tid}"></c:out></td>
				<td><c:out value="${t.departure_add}"></c:out></td>
				<td><c:out value="${t.destination_add}"></c:out></td>
				<td><c:out value="${t.departure_time}"></c:out></td>
				<td><c:out value="${t.arrival_time}"></c:out></td>
				<td><c:out value="${t.price}"></c:out></td>
				<td><c:out value="${t.uname_code}"></c:out></td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>